package com.youlai.boot.system.converter;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youlai.boot.system.model.bo.ArticleBO;
import com.youlai.boot.system.model.entity.Article;
import com.youlai.boot.system.model.vo.ArticleVO;
import com.youlai.boot.system.model.form.ArticleForm;
import com.youlai.boot.system.model.vo.ArticlePageVO;
import java.util.List;
import org.mapstruct.Mapper;

/**
 * 部门对象转换器
 *
 * @author haoxr
 * @since 2022/7/29
 */
@Mapper(componentModel = "spring")
public interface ArticleConverter {
    ArticleForm toForm(Article entity);
    ArticleVO toVo(ArticleBO articelForm);
    Page<ArticlePageVO> toPageVo(Page<ArticleBO> page);
    Article toEntity(ArticleForm deptForm);
    List<ArticlePageVO> toListVo(List<ArticleBO> list);

}